import React from 'react';
import './TopSign.css';
import { Menu, Dropdown, Icon,Badge } from 'antd';
import { Link } from 'dva/router';
import SignIn from '../Sign/SignIn';

class TopSign extends React.Component{
	
	
	render(){
		const menu = (
		  <Menu>
		    <Menu.Item>
		    	<Link to="">
			    	<Icon type="eye" />
			      	查看消息
		      	</Link>
		    </Menu.Item>
		    <Menu.Item>
		    	<Link to="editPassword">
		    	<Icon type="edit" />
		      	修改密码
		      </Link>
		    </Menu.Item>
		    <Menu.Item>
		      <SignIn/>
		    </Menu.Item>
		  </Menu>
		)
	  return (
	    <div className="top-sign">
		  	<Dropdown overlay={menu}>
		  		<Badge count={5}>
		    		<img src={require('../../assets/yay.jpg')}/>
		    	</Badge>
			</Dropdown>
	    </div>
	    
	  )
	}
}

export default TopSign;
